package cn.itcast.java.apis;


import java.util.Arrays;
import java.util.Comparator;

/**
 * Author itcast
 * Date 2021/10/9 17:46
 * •已知数组int[] arr = {25, 69, 80, 57, 13}.
 * •通过Arrays#sort()方法, 对其升序排列.
 * •打印排序后的结果.
 */
public class ArraysDemo {
    public static void main(String[] args) {
        int a = 10;
        Byte b = 127;
        Integer[] arr = {25, 69, 80, 57, 13};
        Arrays.sort(arr);

        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }

        Integer in = new Integer(10);
        System.out.println(in.intValue());
    }
}
